Fix flatpak cache serialization#2329
Conversation
mdellweg
left a comment
There was a problem hiding this comment.
Looks almost too easy. But the code change never reflects the debugging effort. ;)
018b58f to
e10a31a
Compare
6f3fd8a to
0ab9b11
Compare
58cdce3 to
c31f13a
Compare
vsedmik
left a comment
There was a problem hiding this comment.
Tested this patch on Satellite 6.18.5 snap 1 (with pulpcore-3.73.30-1 and pulp-container-2.24.5-1, where I just needed to keep the original line L720 bc domains do not exist there yet) - works well, no 500s on pulpcore_registry index, all related tests test_sync_consume_flatpak_repo_via_* passed.
4cc0a2d to
188aaa1
Compare
|
|
||
| from pulp_container.tests.functional.constants import REGISTRY_V2 | ||
|
|
||
| pytestmark = pytest.mark.skip(reason="TLS is broken currently. TODO: Fix") |
There was a problem hiding this comment.
This probably belongs in a different commit.
There was a problem hiding this comment.
Yep, I'm just trying to get the tests to pass, then I'll reorder/squash the commits to make more sense. Also add the issue number
There was a problem hiding this comment.
Cool - if there's more than one distinct commit that we need to backport, would it make sense to use separate PRs?
There was a problem hiding this comment.
There are four fixes to the flatpak endpoint in this PR right now. Either I squish them all into one commit attached to the issue satellite found, or we make separate PRs for all of them.
ce6fa54 to
37c26b8
Compare
https://redhat.atlassian.net/browse/PULP-1633 - Fix flatpak index cache serialization on pulpcore>=3.85 - Add domain prefix to flatpak index Name field via get_full_path - Fix FlatpakIndexStaticCache key to include host, preventing cross-domain cache collisions - Fix OS/architecture filters being silently dropped in recurse_through_manifest_lists - Make test_flatpak_install domain-aware using the full_path fixture - Fix host generation in index response when CONTENT_ORIGIN=None - Fix CI TLS setup to use cp cert to the anchor location so flatpak/OSTree trusts the Pulp CA Made-with: Cursor
37c26b8 to
6d6cc5c
Compare
| @@ -0,0 +1 @@ | |||
| Fixed flatpak index response to include the domain prefix in image names when domains are enabled. | |||
There was a problem hiding this comment.
In the image names themselves, or is this more like "paths"?
|
Not sure if the remaining CI failure is a flaky test or a true failure |
Backport to 2.26: 💚 backport PR created✅ Backport PR branch: Backported as #2346 🤖 @patchback |
Backport to 2.24: 💚 backport PR created✅ Backport PR branch: Backported as #2347 🤖 @patchback |
Backport to 2.27: 💚 backport PR created✅ Backport PR branch: Backported as #2348 🤖 @patchback |
Re-enable the flatpak tests which caused us to missed this issue.
📜 Checklist
See: Pull Request Walkthrough